<!DOCTYPE html>
<html>
<head>
    <title>故障汇总</title>
		<#include "/header.html">
    <style type="text/css">
        .errorRowColor{
            background-color:#CCCCCC;
        }
        .totalRowColor{
            background-color:#e5e0c6;
        }

        .errRow_1-10{
            background-color:#FFF68F;
        }

        .errRow_10-30{
            background-color:#FFB90F;
        }

        .errRow_30-60{
            background-color:#FFD700;
        }

        .errRow_60{
            background-color:#FFFF00;
        }
    </style>
</head>
<body>
<div id="rrapp" v-cloak>
    <div v-show="showList">
        <div class="grid-btn">
            <div class='col-sm-1' style="padding-left:0px;width:10%">
                <input type='text' class="form-control" v-model="q.dataMonth" id='datetime1' name='datetime1' placeholder="日期" @keyup.enter="query"/>
                <a id="inputClear1" class="glyphicon glyphicon-remove btn form-control-feedback" style="pointer-events: auto;margin-right:15px"></a>
            </div>
            <div class="col-sm-1" style="padding-left:5px;padding-right:5px;">
                <select v-model="q.key" class="form-control" name="selQueryKey" id="selQueryKey">
                    <option value="">查询条件</option>
                    <option :value="list.code" v-for="(list,index) in searchKeyDictInfo" :key="index">{{ list.value }}</option>
                </select>
            </div>
            <div class="col-sm-2"  style="padding-left:5px;padding-right:0px;">
                <input type="text" class="form-control" v-model="q.value" @keyup.enter="query" placeholder="输入查询内容">
                <a id="inputClear" class="glyphicon glyphicon-remove btn form-control-feedback" style="pointer-events: auto;"></a>
            </div>
            <a class="btn btn-primary" @click="query" style="margin-left:10px;"><i class="fa fa-search"></i>&nbsp;查询</a>

			<#if shiro.hasPermission("water:tdataerr2021:save")>
            <a class="btn btn-primary" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</a>
			</#if>
			<#if shiro.hasPermission("water:tdataerr2021:update")>
            <a class="btn btn-primary" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</a>
			</#if>
			<#if shiro.hasPermission("water:tdataerr2021:delete")>
            <a class="btn btn-primary" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
			</#if>
            <a class="btn btn-primary" @click="outxls"><i class="fa fa-download"></i>&nbsp;导出</a>
        </div>
        <div id="content" class="row-fluid" >
            <div class="col-md-2 panel panel-default"
                 style="padding-left:0px;min-height:685px;max-height:calc(100vh - 70px);overflow-y: scroll;">
                <ul id="deptTreeLeft" class="ztree"></ul>
            </div>
            <div class="col-md-10">
                <table id="jqGrid"></table>
                <div id="jqGridPager"></div>
            </div>
        </div>
    </div>

    <div v-show="!showList" class="panel panel-default">
        <div class="panel-heading">{{title}}</div>
        <form class="form-horizontal">
            <div class="form-group">
                <div class="col-sm-2 control-label">城市</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="tDataErr2021.cityName" placeholder="城市"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">区域</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="tDataErr2021.areaName" placeholder="区域"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">分所</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="tDataErr2021.unitName" placeholder="分所"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">小区</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="tDataErr2021.proName" placeholder="小区"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">小区数</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="tDataErr2021.proCount" placeholder="小区数"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">设备数</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="tDataErr2021.deviceCount" placeholder="设备数"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">小区故障数</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="tDataErr2021.proErr" placeholder="小区故障数"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">设备故障数</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="tDataErr2021.deviceErr" placeholder="设备故障数"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">故障率</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="tDataErr2021.rateErr" placeholder="故障率"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label"></div>
                <input type="button" class="btn btn-primary" id="btnSaveOrUpdate" data-loading-text="保存中..."
                       @click="saveOrUpdate" value="确定"/>
                &nbsp;&nbsp;<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
            </div>
        </form>
    </div>
</div>

<script src="${request.contextPath}/statics/js/modules/water/tdataerr2021.js?_${.now?long}"></script>
</body>
</html>